package com.weichat.exception;

import com.weichat.util.ResultEnum;

/**
 * Created with IntelliJ IDEA
 * Created By HZP
 * Date: 2018/6/7
 * Time: 23:29
 */
public class SellException extends RuntimeException {

   private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        code=resultEnum.getCode();
    }

    public SellException(Integer code,String message) {
        super(message);
        this.code = code;
    }
}

